//
//  BaseViewController.swift
//  BaseProject
//
//  Created by guolinsong on 2018/7/2.
//  Copyright © 2018年 guolin song. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.backgroundColor = UIColor.white
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
         MyLog("内存警告");
    }
    deinit {
        print((NSStringFromClass(type(of: self)) + "释放"))
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.view.endEditing(true);
    }
    
//    +(instancetype)viewController
//    {
//    return [[self class] new];
//    }
//    +(instancetype)viewControllerWithLR
//    {
//
//    return [[self class] viewControllerWithStoryboardName:LRStoryboard];
//    }
//    +(instancetype)viewControllerWithWT
//    {
//
//    return [[self class] viewControllerWithStoryboardName:WTStoryboard];
//    }
//    +(instancetype)viewControllerWithFX
//    {
//
//    return [[self class] viewControllerWithStoryboardName:FXStoryboard];
//    }
//    +(instancetype)viewControllerWithWD
//    {
//
//    return [[self class] viewControllerWithStoryboardName:WDStoryboard];
//    }
//    +(BaseNavigationController *)navViewControllerWithWT
//    {
//
//    return [[self class] navControllerWithStoryboardName:WTStoryboard];
//    }
//    +(BaseNavigationController *)navViewControllerWithFX
//    {
//
//    return [[self class] navControllerWithStoryboardName:FXStoryboard];
//    }
//    +(BaseNavigationController *)navViewControllerWithWD
//    {
//
//    return [[self class] navControllerWithStoryboardName:WDStoryboard];
//    }
//
//    +(instancetype)viewControllerWithStoryboardName:(NSString *)name
//    {
//    BaseViewController * vc=[[UIStoryboard storyboardWithName:name bundle:nil] instantiateViewControllerWithIdentifier:NSStringFromClass([self class])];
//    return vc;
//    }
//    +(BaseNavigationController *)navControllerWithStoryboardName:(NSString *)name
//    {
//    BaseNavigationController * nav=[[BaseNavigationController alloc] initWithRootViewController:[[self class] viewControllerWithStoryboardName:name]];
//
//    return nav;
//    }
    
}


